@(titulo: String, instituicaoForm: Form[models.Instituicao])

@import helper._

@implicitField = @{ FieldConstructor(fields.simpleInput.f) }

<fieldset>
	<legend>@titulo</legend>
	<input type="hidden" name="id" value="@instituicaoForm("id").value" />
	<table>
		@inputText(instituicaoForm("nome"), '_label ->  "Nome: ", '_showConstraints -> false)
		@inputText(instituicaoForm("email"), '_label ->  "E-mail: ", '_showConstraints -> false)
	</table>
</fieldset>
<br />
<fieldset>
	<legend>Endereço</legend>
	<input type="hidden" name="endereco.id" value="@instituicaoForm("endereco.id").value" />
	<table>
		@inputText(instituicaoForm("endereco.logradouro"), '_label ->  "Logradouro: ", '_showConstraints -> false)
		@inputText(instituicaoForm("endereco.complemento"), '_label ->  "Complemento: ", '_showConstraints -> false)
		@inputText(instituicaoForm("endereco.bairro"), '_label ->  "Bairro: ", '_showConstraints -> false)
		@inputText(instituicaoForm("endereco.numero"), '_label ->  "Número: ", '_showConstraints -> false)
		@inputText(instituicaoForm("endereco.cep"), '_label ->  "CEP: ", '_showConstraints -> false)
		@inputText(instituicaoForm("endereco.cidade"), '_label ->  "Cidade: ", '_showConstraints -> false)
		@inputText(instituicaoForm("endereco.estado"), '_label ->  "Estado: ", '_showConstraints -> false)
	</table>
</fieldset>
<br />
<input type="submit" value="Confirmar" />
